30.3.5 仓库示例

package com.example.myapp.domain;

import org.springframework.data.domain.*;
import org.springframework.data.repository.*;

public interface CityRepository extends GraphRepository<City> {

    Page<City> findAll(Pageable pageable);

    City findByNameAndCountry(String name, String country);

}

想详细了解Spring Data Neo4j,包括它丰富的对象映射技术,可查看它的参考文档

powered by Gitbook该页面构建时间: 2017-08-01 08:30:16

results matching ""

    No results matching ""